cmake_minimum_required(VERSION 3.21)
set(PROJECT_NAME MVCamera)
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 11)

find_package(OpenCV 3.4 REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(/opt/MVS/include/)
include_directories(include/)

link_directories(/opt/MVS/lib/64/)

add_executable(${PROJECT_NAME} main.cpp include/MVCamera.cpp)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

target_link_libraries(${PROJECT_NAME}
        ${OpenCV_LIBRARIES}
        MvCameraControl
        MVRender
        MVGigEVisionSDK
        X11
        MvUsb3vTL
        MediaProcess
        )